projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0907288
)
Fix `cargo test --doc` not testing examples
author
Mikkel Kroman
<mk@uplink.io>
Fri, 13 May 2016 05:22:19 +0000
(07:22 +0200)
committer
Mikkel Kroman
<mk@uplink.io>
Fri, 13 May 2016 05:22:19 +0000
(07:22 +0200)
src/cargo/ops/cargo_test.rs
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_test.rs
b/src/cargo/ops/cargo_test.rs
index 8548087986c20816424a27c906107cb98f32997e..42e365f6ae736d3ed50c8c42138a0466ea9de500 100644
(file)
--- a/
src/cargo/ops/cargo_test.rs
+++ b/
src/cargo/ops/cargo_test.rs
@@
-20,7
+20,7
@@
pub fn run_tests(manifest_path: &Path,
return Ok(None)
}
let mut errors = if options.only_doc {
-
Vec::new(
)
+
try!(run_doc_tests(options, test_args, &compilation)
)
} else {
try!(run_unit_tests(options, test_args, &compilation))
};